package socket

import (
	"github.com/gorilla/websocket"
	"net/http"
)


var Upgrade websocket.Upgrader

func init()  {
	// 创建upgrade(升级)对象
	Upgrade =websocket.Upgrader{
		//检查来源
		CheckOrigin: func(r *http.Request) bool {
			return true
		},
	}

}

type User struct {
	Name string
	Age int
	Sex string
}
